package adapterPackage;

import java.util.ArrayList;
import java.util.List;

import dataTypesPackage.Sefer;
import systemPackage.MainSystem;


public class SeferAdapter {
	public static List<Sefer> getAllSefer(){
		List<Object> objectList = MainSystem.getAll(Sefer.class);
		//as all getAll functions, we have to cast to according class
		List<Sefer> seferList = new ArrayList<Sefer>();
		for(Object temp:objectList){
			seferList.add((Sefer)temp);
		}
		return seferList;
	}

}
